<script setup>

import { Search } from '@element-plus/icons-vue'

defineProps({
  form: {
    type: Object,
    default: ()=>{
      return {}
    }
  }
})

const emit = defineEmits(['sub'])

function sub() {
  emit('sub');
}

</script>

<template>
  <el-form style="margin-bottom: 20px;">

    <el-checkbox v-model="form.batch">按批次统计</el-checkbox>
    <el-checkbox v-model="form.warehouse">按仓库统计</el-checkbox>
    <el-input
        v-model="form.value"
        style="max-width: 400px"
        placeholder="请输入"
    >
      <template #append>
        <el-button :icon="Search" @click="sub" />
      </template>
    </el-input>


  </el-form>
</template>

<style scoped lang="scss">

</style>